package net.yyge.apksigner.utils;

import java.io.Closeable;
import java.io.IOException;
import java.util.function.Consumer;

public class IOUtils {
    public static void closeQuietly(Closeable closeable) {
        closeQuietly(closeable, (Consumer) null);
    }

    public static void closeQuietly(Closeable closeable, Consumer<IOException> consumer) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (IOException var3) {
                IOException e = var3;
                if (consumer != null) {
                    consumer.accept(e);
                }
            }
        }

    }
}
